package city.spring.modules.bed.repository;

import city.spring.modules.bed.entity.RoomTypeEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * 存储库：房间类型
 *
 * @author 潘小梅
 * @date 2020-04-08 11:34:42
 */
@Repository
public interface RoomTypeRepository extends BaseMapper<RoomTypeEntity> {

    /**
     * 通过房间ID来找到房间类型
     *
     * @param bedRoomId 床位ID
     * @return 该床位的房间类型
     */
    RoomTypeEntity getByRoomId(String bedRoomId);
}